//接口地址
const base = {
  //首页
  totalInfo: "/api/home/dataCount",
  orderinfo: "/api/home/orderinfo",
  format: "/api/home/format",

  //产品管理
  projectList: "/api/goods/projectList",
  search: "/api/goods/search",
  deleteItemById: "/api/goods/deleteItemById",
  selectItemCategoryByParentId: "/api/goods/itemCategory/selectItemCategoryByParentId",

  //图片上传
  uploadUrl: "/api/upload",
  insertTbItem: "/api/goods/item/insertTbItem",
  batchDelete: "/api/goods/batchDelete",
  updateTbItem: "/api/goods/item/updateTbItem",

  //产品分类
  itemCategory: "/api/itemCategory",
  insertItemCategory: "/api/itemCategory/insertItemCategory",
  deleteContentCategoryById: "/api/content/deleteContentCategoryById",
  updateCategory: "/api/itemCategory/updateCategory",
  insertCategory: "/api/itemCategory/insertCategory",

  //订单管理
  orderList: "/api/order/list",
  changeStatus: "/api/order/changeStatus",
  collect: "/api/order/collect",
  cancel: "/api/order/cancel",
  detail: "/api/order/list/detail",

  //登录
  login:'/api/login',
  permission:'/api/permission'
};

export const host = "http://localhost:7788";

export const uploadUrl = "/upload";

export default base;
